export const formatTime = (seconds: number) => {
    const s = Math.floor(seconds % 60);
    const m = Math.floor(seconds / 60);
    return `${m}:${s.toString().padStart(2, '0')}`;
};

// 导出事件总线
export { eventBus, EventBus } from './eventBus';
export type { EventMap } from './eventBus';

// 导出防抖工具函数
export { createDebounce, debounce, throttle } from './debounceUtils';
export type { DebounceInstance } from './debounceUtils';
